/* 默认是PC端 */
body{
      a:hover{
            color: red;
        }
}
.topNav {
    height: 60px;
    line-height: 60px;
    border-bottom: 1px solid #ccc;

    li {
        float: left;
        padding: 0 36px;
        border-right: 1px solid #ccc;
      

        &:last-child {
            border-right: 0 none;
        
            a {
                display: block;
                width: 68px;
                height: 32px;
                line-height: 32px;
                background-color: red;

                float: left;
                text-align: center;
                margin-top: 15px;
                margin-right: 10px;
                border-radius: 5px;

                &:first-child {
                    color: white;
                }

                &:last-child {
                    background-color: transparent;
                }
            }
        }
    }
}

/* 主体导航区域 */
.main_nav {
    height: 55px;
    line-height: 55px;

    a {
        float: left;
        img {
            width: 145px;
        }
    }

    ul {
        float: left;
        margin-left: 32px;

        li {
            float: left;
            margin-right: 43px;

            &:last-child {
                margin-left: 30px;
                margin-right: 0;
            }
        }
    }
}

/* 广告区域 */
.banner {
    width: 100%;
}

.banner img {
    width: 100%;
}

/* 列表区域 */
.list_box {
    padding: 15px 0;
    border-bottom: 1px solid #ccc;

    .w {
        position: relative;
    }

    dl {
        float: left;

        &:nth-child(2) {
            position: absolute;
            left: 50%;
            transform: translate(-50%);
        }

        &:last-child {
            float: right;
        }

    }

    dt {
        font-size: 18px;
        margin-bottom: 10px;
        font-weight: 700;
    }

    dd {
        font-size: 16px;
        margin-bottom: 5px;
    }
}

/* 文本内容区域 */
.text_news {
    padding: 15px 0;
    border-bottom: 1px solid #ccc;

    p {
        font-size: 16px;
        line-height: 30px;

        span {
            /* 鼠标样式属性 */
            cursor: help;
            color: #4aa6ee;
        }

        a {
            color: #f3c8a1;
        }
    }
}

/* 底部区域 */
.footer {
    background: url(../images/box-style-bg.png);

    .w {
        width: 1200px;
    }
}

.top_footer {
    height: 55px;
    line-height: 55px;
    border-bottom: 1px solid #ccc;
    padding: 0 90px;

    li {
        float: left;
        margin: 0 20px;
    }
}


.middle_footer {
    position: relative;
    height: 55px;
    background-color: #fff;
    margin-top: 20px;
    line-height: 55px;
    padding-left: 90px;
    box-sizing: border-box;

    &::after {
        position: absolute;
        left: 124px;
        top: -20px;
        content: '';
        display: block;
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid transparent;
        border-bottom: 10px solid #fff;
    }
}

.bottom_footer {
    margin-top: 15px;

    .item {
        width: 393px;
        height: 150px;
        background-color: #e61e25;
        float: left;
        margin-bottom: 10px;
        padding: 10px;
        box-sizing: border-box;
        border-radius: 10px;

        &:nth-child(3n+2) {
            margin: 0 10px;
        }
    }
}

.item {



    .left_item {

        position: relative;
        float: left;
        width: 284px;
        height: 130px;
        border-right: 1px dashed #ccc;
        box-sizing: border-box;
        margin-left: 8px;

        &::after {
            position: absolute;
            right: -10px;
            top: -20px;
            content: '';
            display: block;
            width: 20px;
            height: 20px;
            background-color: #f0f0f0;
            border-radius: 50%;
        }

        &::before {
            position: absolute;
            right: -10px;
            bottom: -20px;
            content: '';
            display: block;
            width: 20px;
            height: 20px;
            background-color: #f0f0f0;
            border-radius: 50%;
        }

        p {
            font-size: 12px;
            line-height: 28px;

            &:first-child {
                color: #fdfffd;
                font-size: 18px;
            }

            &:nth-child(2n) {
                color: #f19196;
                margin-right: 10px;
            }

            &:nth-child(2n+1) {
                color: #fdfffd;
                font-weight: 700;
                margin-right: 10px;

            }


        }



    }

    .right_item {
        float: left;
        width: 80px;
        height: 130px;
        padding: 40px 0;
        box-sizing: border-box;

        p {
            color: #f0f0f0;
            text-align: center;
            font-size: 14px;

            &:first-child {
                font-weight: 700;

                font-size: 22px;

            }
        }
    }
}

/* ipad端 */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .w {
        width: 100%;
        max-width: 768px;
    }

    .topNav li {
        padding: 0 28px;

        &:nth-child(1) {
            display: none;
        }
    }

    .main_nav {
        padding: 0 10px;

        ul {
            margin-left: 30px;

            li {
                margin-right: 30px;

                &:last-child {
                    display: none;
                }
            }
        }
    }

    .list_box {
        padding: 10px;
    }


    .text_news {
        padding: 15px 10px;
    }


    .top_footer {
        padding: 0;
    }

    .middle_footer {
        padding: 0 10px;

        &::after {
            left: 20px;
        }
    }

    .bottom_footer .item {
        width: 49%;
        margin-bottom: 15px;

        &:nth-child(3n+2) {
            margin: 0 0 15px;
        }

        &:nth-child(2n) {
            float: right;
        }
    }
}

/* 移动端 */
@media only screen and (min-width: 320px) and (max-width: 430px) {


    .banner {
        margin-top: 50px;
    }


    .w {
        width: 100% !important;
    }

    .topNav {
        display: none;
    }

    .main_nav {
        display: none;
    }

    .list_box {
        display: none;
    }


    .text_news {
        padding: 15px 10px;
    }


    .top_footer {
        padding: 0;
        overflow: auto;
    }

    .top_footer ul {
        width: 768px;
    }

    .top_footer li {
        margin: 0 20px;
    }

    .middle_footer {
        padding: 0 10px;

        &::after {
            left: 20px;
        }
    }

    .bottom_footer .item {
        .left_item {

            width: 67%;
        }

        .right_item {

            width: 30%;
        }

        width: 100%;
        margin-bottom: 15px;

        &:nth-child(3n+2) {
            margin-left: 0;
            margin-right: 0;
            margin-bottom: 15px;
        }
    }

}